home *** CD-ROM | disk | FTP | other *** search
- ;
- ;
- ; SemWare Potpourri Macro data file.
- ;
- ; *WARNING* DO NOT EDIT THIS FILE DIRECTLY!!!
- ;
- ; The Potpourri macro expects this file to be in a certain format.
- ;
- ;
- ASCII Alternate ASCII chart
-
- Overview:
-
- This ASCII chart provides additional information for characters 0
- thru 31.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- Adjust Adjusts text in a marked block to the right, left or center
-
- Overview:
-
- This macro allows you to adjust text within a block by aligning it
- either on the left or right, or by centering it. If a column block
- is marked, the macro operates on the text in the block using the
- leftmost and/or rightmost column boundary (as appropriate). If a
- line or character block is marked, it operates on the text on the
- lines spanned by the block, using the left and/or right margin (as
- appropriate). A selection menu issued by the macro allows you to
- choose whether you want to left adjust, right adjust, or center the
- text.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- Align Aligns current line with previous line, or at cursor position
-
- Overview:
-
- Align() positions the FirstNonWhite character on the current line to
- the same position of the FirstNonWhite character on the previous
- line or the first preceding non-blank line. The cursor will then be
- moved to the next line in the file.
-
- AlignAtCursor() positions the FirstNonWhite character on the current
- line to the cursor position. The cursor will then be moved to the
- next line in the file.
-
- Keys:
- <Ctrl F5> Align()
- <Ctrl F6> AlignAtCursor()
-
- Usage notes:
-
- If the current line is blank, the cursor will still go to the next
- line of the file, but no alignment will occur.
-
- Book Bookmark manager - allows visual display of active bookmarks
-
- Overview:
-
- These macros will give a visual display of all active bookmarks.
- This comes in very handy when you cannot remember which bookmark
- takes you to the desired location. When you pop up the PickList, a
- portion of the line where bookmarks are located will be displayed so
- you can choose based on the content of the line.
-
- Keys:
- <Ctrl /> PlaceBookMark
- <Ctrl .> GotoNextBookMark
- <Ctrl ,> GotoPreviousBookMark
- <CtrlShift /> ViewBookMarkList
-
- Usage notes:
-
- Using the <Ctrl /> key, you can place bookmarks at any place in any
- file. The bookmarks are numbered in sequential order beginning with
- 1. Pressing the <Ctrl .> and <Ctrl ,> keys will go to the next and
- previous bookmarks respectively. Pressing the <CtrlShift /> key
- will invoke the PickList which shows the bookmark number, file, line
- number, and part of the text on the line where each bookmark is
- located.
-
- CD A "chdir" command for TSE
-
- Overview:
-
- Provides a facility to change the current directory within TSE.
- Either full or partial pathnames may be entered. Limited to drives
- identified by alphabetic letters followed by a colon (e.g., "c:").
-
- Detailed help is available by invoking the macro and following the
- prompts.
-
- Calendar Displays a visual, changeable calendar
-
- Overview:
-
- Three calendar displays are available -- Medium-Size Single Month,
- Three Months at a Time, and a Small Single Month. (Press <Alt C> to
- toggle between them.)
-
- A small calendar can be inserted into the current file by pressing
- <Alt I>. Here is a sample:
-
- ┌────────────────────┐
- │April 5th 1993│
- │Su Mo Tu We Th Fr Sa│
- │ 1 2 3│
- │ 4[ 5] 6 7 8 9 10│
- │11 12 13 14 15 16 17│
- │18 19 20 21 22 23 24│
- │25 26 27 28 29 30 │
- └────────────────────┘
-
- Keys:
- Next Day <CursorUp> or <CursorRight>
- Previous Day <CursorDown> or <CursorLeft>
-
- Next Month <+>, <SpaceBar> or <Enter>
- Previous Month <-> or <BackSpace>
-
- Next Year <PgUp>
- Previous Year <PgDn>
-
- First Day Of Month <Home>
- Last Day Of Month <End>
-
- First Day Of Year <Ctrl Home>
- Last Day Of Year <Ctrl End>
-
- Today <Alt T>
- Change Calendar Type <Alt C>
- Insert Calendar into Text <Alt I>
- Exit Calendar <Escape>
-
- ClipView Simple ClipBoard Viewer utility for PROJECTS
-
- Overview:
-
- This file provides a simple ClipBoard viewer. It allows ClipBoards
- "A" through "Z" to be viewed. It was written as a support file for
- PROJECTS.
-
- Keys: (none)
-
- Usage notes:
-
- This macro may be executed from the PROJECTS macro, or may be
- executed directly from Potpourri or the "Execute Macro:" prompt.
-
- Clock StatusLine clock for TSE
-
- Overview:
-
- This clock uses binary support to help determine whether or not data
- is overlaying the spot where the time would go. It also retrieves
- its color attribute byte from the first byte on the screen, so it
- always knows what color to set the clock to.
-
- In addition, if "Eliminate Snow" is set within TSE, snow checking
- will also be performed, if the card is determined to be a CGA card.
-
- Keys: (none)
-
- Usage notes:
-
- Simply load or execute this macro to display a simple clock on the
- StatusLine.
-
- CmpFiles Compares the current file to a backup file
-
- Overview:
-
- The user will be prompted for a backup filename. This backup file
- may be inside an "ARC", "ARJ", "LZH", or "ZIP" file, or it may be a
- stand alone file. If the file is inside an archive, then the
- filename must be the same as the current filename. Note that there
- may be many different files inside the archive, but only the one
- that matches the current filename will be extracted.
-
- The two files will be split (either vertically or horizontally).
- Cursor movement keystrokes will be fed to both windows so that they
- move simultaneously, in sync with each other.
-
- Text may be scanned, and differences will be highlighted.
-
- The video mode may be changed from 25 to 36 to 44 to 50 lines to
- show more detail.
-
- F1 is available for help.
-
- Whitespace characters (spaces and tabs) are automatically converted
- to a single space character by default, in an effort to reduce false
- comparisons. This option may be toggled by pressing the "W" key.
-
- Once a re-sync has been accomplished, both windows will update to
- the end of the difference text, with the re-synced lines adjacent to
- each other on line 12 of the screen. Difference text will be marked
- in both windows, for easy comparison. Press the grey- key to
- retreat to the BEGINNING of the difference text, then press the
- grey+ key to move back to the END of the difference text. Hit the
- enter again to continue the search process, -- to find and highlight
- the next difference.
-
- Keys: (none)
-
- Usage notes:
-
- This macro is designed to be run from PROJECTS or may be executed
- directly from Potpourri. It is automatically purged when done.
-
- LIMITATIONS: -Line length must be under 256 characters.
-
- -although whitespace errors will NOT cause files that
- are already in sync to de-sync (unless the whitespace
- filter is turned off), TSE's basic search mechanism is
- used to re-sync, and whitespace cannot be filtered out
- here. This is usually not too big of an issue unless
- you completely en-tab, or de-tab one of the two files.
- Then re-syncing will NOT take place.
-
- -Your file decompressor must be in the path, or a "File
- Not Found" error message will result.
-
- The usual disclaimer -- Use these macros at your own risk! I will in
- NO WAY be responsible for ANY problems resulting in their use.
-
- CUAMark Enables <Shift>+cursor-keys to emulate CUA-style block marking
-
- Overview:
-
- This macro modifies the <Shift>+cursor-keys to emulate CUA-style
- block marking and manipulating. It also assigns other keys to
- comply with CUA standards, including key assignments for Paste (from
- the System ClipBoard), CopyBlock (from the System ClipBoard), Cut
- (to the System ClipBoard), and DelBlock.
-
- Keys:
- <Shift Ins> Paste-to-clipboard
- <Ctrl Ins> Copy-from-clipboard
- <Shift Del> Cut-to-clipboard
- <Ctrl Del> DelBlock
-
- <Shift CursorRight> Mark while going right
- <Shift CursorLeft> Mark while going left
- <Shift CursorUp> Mark while going up
- <Shift CursorDown> Mark while going down
- <Shift Home> Mark while going to begline
- <Shift End> Mark while going to endline
- <Shift PgUp> Mark while going page up
- <Shift PgDn> Mark while going page down
- <CtrlShift CursorRight> Mark while going word right
- <CtrlShift CursorLeft> Mark while going word left
- <CtrlShift Home> Mark while going begwindow
- <CtrlShift End> Mark while going endwindow
- <CtrlShift PgUp> Mark while going begfile
- <CtrlShift PgDn> Mark while going endfile
-
- Usage notes:
-
- If you wish to make this macro a permanent part of your
- configuration, then simply add "CUAMark" to the AutoLoad list on
- the Macro menu.
-
- Date Inserts current date (format includes Month spelled out)
-
- Overview:
-
- This macro inserts the current date with the full name of the month
- and a 4-digit year. The format is as follows:
-
- January 27, 1994.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- DelToBol Delete text from cursor to beginning of current line
-
- Overview:
-
- This macro is the complement to the DelToEol() command. All text
- from the beginning of the line through the position preceding the
- cursor will be deleted.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
-
- EditFile Enhanced EditFile command
- Overview:
-
- This macro enhances EditFile() by trying to load the file from the
- current directory first, and if unsuccessful, it then tries the
- current file's directory. If wildcards are used, two picklists will
- be presented -- one for the current directory and one for the
- current file's directory.
-
- Simply load this macro and press <Alt E> to pull up the
- SmartEditFile() prompt.
-
- Keys:
- <Alt E> SmartEditfile()
-
- Usage notes:
-
- With this macro, you can literally tag and load thousands of
- filenames in mere seconds (for example, it took just 12 seconds to
- mark and load all 433 filenames in one of my larger directories).
-
- Major features include:
-
- 1. File tagging for multiple file loading and deletions.
-
- While in an Edit PickFile, multiple files may be tagged by
- first highlighting a file and then by pressing the SPACEBAR. A
- tag will appear in the "tag" position of the PickFile in the
- column along the left.
-
- Tagging key alternatives to the SPACEBAR include the GREY PLUS
- key, the GREY MINUS key, the INSERT key, and the LEFT mouse
- button.
-
- Press ENTER or click the RIGHT mouse button on a filename, to
- load all of the tagged files, or just the selected file if no
- tags are present. Both normal files, as well as binary and
- hex files, may be tagged and loaded in this manner.
-
- Press DELETE to delete all tagged files, or just the selected
- file if no files are tagged.
-
- In addition, subdirectories may also be deleted, provided that
- they are empty. Subdirectories may NOT be tagged.
-
- 2. PickFile Sorting
-
- If a wildcard is utilized, or if a directory is referenced,
- then TSE will provide a PickFile showing multiple file
- choices. This PickFile may now be sorted. Files may be
- sorted by name, extension, date, or size.
-
- 3. Dual Directory Searching
-
- If a file is not found in the current directory, and if the
- current file at the top of TSE's ring of files is in a
- directory different from the current directory, then an
- attempt will be made to locate the file(s) in this directory.
- This action will apply to both single files as will as
- wildcard PickFiles and with multiple filenames.
-
- Expand Expands the current partial word based on match in current file
-
- Overview:
-
- This macro file provides a macro that operates like a limited,
- dynamic Template mode. It expands, or completes, the "partial" word
- to the left of the cursor based on other words in the file. When you
- execute Expand from the Potpourri PickList, the Expand macro is
- assigned to <Ctrl H>.
-
- Keys:
- <Ctrl H> Expand()
-
- Usage notes:
-
- With this macro activated, just press <Ctrl H> each time you want to
- complete the partial word immediately preceding the cursor. The
- macro searches backward and forward in the file for words that begin
- with the string that you typed as the partial word. If only one
- match is found, the partial word is replaced with the expanded word.
- If multiple matches are found, the macro first displays a PickList
- of expanded entries from which you can choose. To select an
- expanded word from the PickList, move the cursor bar over the
- desired entry and press <Enter>. Your partial word is then replaced
- in the text with the expanded word you selected.
-
- Expr Calculates the value of a specified mathematical expression
-
- Overview:
-
- This macro operates as a simple calculator, and handles decimal or
- hexadecimal numbers. For decimal numbers, only whole numbers are
- accepted.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- The following operations are available:
-
- > SHR (bitwise shift right)
- < SHL (bitwise shift left)
- ~ COMP (2's complement)
- % MOD (modulo division)
- & AND (bitwise AND)
- | OR (bitwise OR)
- ^ XOR (bitwise eXclusive-OR)
- + Addition
- - Subtraction
- * Multiplication
- / Division
-
- Precedence is as in SAL, but can be forced by using parenthesis.
-
- Hex number may be entered using C format, or ending with an 'h' or
- '$'. Regardless, the first character _must_ be numeric.
-
- FillNum Fill a COLUMN block with a sequence of numbers
-
- Overview:
-
- This macro fills a column block with a series of numbers that can be
- incremented or decremented. You specify the beginning and
- (optionally) ending number in the series, as well as the positive or
- negative amount by which to increment or decrement the series.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- FindEOL Macros to find and replace text that include the end of line
-
- Overview:
-
- This macro file provides a group of macros that allow you to find
- and replace text that includes the end of line, if you specify the
- end of line (as "$") in the search string. These macros are useful
- for locating a text string that begins on one line, and ends on
- another. They are also useful for such tasks as:
-
- ∙ Deleting extra blank lines in a file
-
- For example, to change all occurrences of 2 blank lines to a
- single blank line, use this macro to search for "$$$" and
- replace with "$$".
-
- ∙ Removing trailing text from certain lines
-
- For example, to remove a trailing comma from any lines
- immediately followed by a blank line, use this macro to search
- for ",$$" and replace with "$$".
-
- When you execute this macro file, special find, replace, and repeat
- find/replace macros are assigned to keys. A message is displayed to
- identify the key to which each macro is assigned.
-
- Keys:
- <AltShift F> FindReplaceEol(TRUE) // Find only
- <AltShift R> FindReplaceEol(FALSE) // Find and Replace
- <AltShift L> RepeatFindReplaceEol() // RepeatFind
-
- Usage notes:
-
- There are a few limitations to this macro:
-
- 1 - Does not support regular expressions.
- 2 - Search string cannot be a single '$'.
- 3 - When lines are joined by replacing the '$' with nothing,
- the resulting line must be less than the max line length.
-
- InsMatch Inserts the matching character for a specific groups of chars
-
- Overview:
-
- This macro causes the editor to insert the matching character for a
- specific group of bracketing character pairs, including the
- following: [], (), {}, <>, '', "". Execute this macro to toggle
- the "insert matching" mode ON or OFF. When ON, the matching
- character of a pair is automatically inserted when you type the
- first character. For example, if you enter the character {, this
- macro inserts the matching character, }.
-
- Keys: Char Inserts
- [ []
- ' ''
- " ""
- { {}
- < <>
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- Each time this macro is executed, the EnterMatching state is
- toggled. The first time, EnterMatching is enabled. To disable,
- simple execute the macro again.
-
- Justify Justifies a paragraph based on the right margin
-
- Overview:
-
- This macro work just like the WrapPara() command, but also justifies
- each line to the RightMargin.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- LdFList Loads all files listed in the current file
-
- Overview:
-
- This macro will load all files listed in the current file.
-
- Keys: (none)
-
- Usage notes:
-
- The list of files to be loaded is assumed to be in the following
- format:
-
- filename1
- filename2
- filename3
- filename4
-
- The list of files is abandoned after the command is completed.
-
-
- LongstLn Locates the longest line in the current file or block
-
- Overview:
-
- This macro locates the longest line in the current file. When you
- execute this macro, you are positioned on the longest line, and its
- length is displayed on the StatusLine. If a block is marked in the
- current file, then the search is limited to the block.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply
- select it from the Potpourri menu.
-
- Overlay Flip between two loaded files, showing differences
-
- Overview:
-
- Flips between two files on the screen QUICKLY so file differences
- are apparent. This macro is intended to show differences in text
- which is somewhat similar. I use the macro to display differences
- between two similar files of source. This indicates when lines have
- been added or deleted. I then update one or the other files by
- inserting the appropriate # of lines as necessary to only "flicker"
- differences on similar lines
-
- If bookmarks 'A' and 'B' are placed (configurable below) the files
- containing these bookmarks are flipped.
-
- If bookmarks are not specified, Current and Next Files are flipped
-
- Para Macros to go to the end and to the next and previous paragraph
-
- Overview:
-
- These macros will position the cursor on the next or previous
- paragraph, or at the end of the current paragraph. They assume that
- there is at least one blank line between paragraphs.
-
- Keys:
- <Ctrl CursorDown> NextPara()
- <Ctrl CursorUp> PrevPara()
- <Ctrl CenterCursor> EndPara()
-
- Usage notes:
-
- If you wish to make this macro a permanent part of your
- configuration, then simply add "Para" to the AutoLoad list on the
- Macro menu.
-
- Projects Project management macro for saving and restoring files
-
- Overview:
-
- Project management macro for TSE. This macro will save currently
- loaded files and several pre-defined editing variables as a named
- project. The macro may then be run to reload the previously saved
- files for a given project.
-
- Keys:
- <Ctrl K><M> ShowMainMenu()
- <Ctrl K><P> SaveProjectFiles()
- <Ctrl K><A> SaveProjectFilesAndExit()
-
- Usage notes:
-
- Executing Project will prompt the user with a menu allowing PROJECTS
- to be added to the AutoLoad list. Adding PROJECTS to the AutoLoad
- list will allow projects from the command line or from an initial
- picklist each time the editor is executed.
-
- To make changes to this macro or assign pre-defined functions to
- keys, see the "User Configurable Area" below.
-
- This file contains source for SAVING/RESTORING project information.
- Projects are stored in a PRJ subdirectory located just after the
- directory where the PROJECTS macro is located (eg) C:\TSE\MAC\PRJ.
-
- Now, when you save a project, you will be presented with a message
- box asking you for a project name (!!LAST!! is the default) Note
- that you should select your own name for the project, since !!LAST!!
- will be overwritten each time a project is saved. That's it --
- project information will be saved, and made available for later
- restoration. This allows for NEAR SEAMLESS EDITING across sessions.
-
- It is UNNECESSARY to change into the PRJ subdirectory to restart a
- project. Simply type "e projectname" (with or without the ".PRJ"
- extension), and TSE will automatically open that project for you --
- REGARDLESS OF THE CURRENT DIRECTORY SETTING. (Note also that it is
- NOT necessary to have the "PRJ" subdirectory in your path
- statement).
-
- Although this is convenient, there is ANOTHER WAY. Every time a
- project is saved, TWO project files are created -- one with the
- project name that you assign when you exit the editor, and the other
- with the name "!!LAST!!.PRJ". Since an "!" is near the beginning of
- the alphabet, this file should always be the first file in a
- picklist of files. By starting the editor with just "e <enter>",
- this picklist will be displayed. Simply press <enter> a second time
- to edit the LAST PROJECT FILES, or move through the picklist to
- choose another project. If you do not wish to edit a project, just
- press <Escape> to get the familiar "File(s) to edit" box.
-
- Saved information is as follows:
-
- ALL FILENAMES currently being edited.
- ALL STANDARD BOOKMARKS across ALL files.
- ALL AUDIT BOOKMARKS across ALL files.
- ALL KEYSTROKE MACROS (including scrap macro).
- The CURRENT DRIVE AND DIRECTORY.
- The VIDEO MODE (25, 28, 43, or 50 lines).
- The MAIN CLIPBOARD DATA (all marking types).
- Up to 26 NAMED CLIPBOARDS (single characters "A" through "Z" only).
- Any MARKED BLOCK (all marking types).
- The state of INSERT.
- The state of AUTOINDENT.
- The state of WORDWRAP.
- The state of the RIGHT MARGIN.
- The state of the HEX display function.
- The state of the BINARY display function.
- ALL HISTORY information.
-
- QuickXit Quick Exit - prompt for saving or abandoning all changed files
-
- Overview:
-
- An alternative way of exiting the editor. If no changed files just
- exit. Otherwise, give the user the choice of either canceling the
- command, quitting the editor without saving the files, or save all
- changed files and then quit the editor.
-
- Keys: (none)
-
-
- RePage Places page-breaks in current file based on printer settings
-
- Overview:
-
- This macro places formfeed characters (ASCII 12) throughout a file,
- based on the page size. (The page size is determined by the value
- of the PrintLinesPerPage variable, which can be set from the Print
- Menu, by selecting "Lines Per Page" under "Set Options"). When you
- execute this macro, it pauses on each line where a formfeed should
- go, according to the page size, and places a cursor bar on that
- line. You can then select that line on which to place the formfeed,
- or move the cursor bar to a previous line in the file to select a
- different line on which to place the formfeed. After you select the
- line for the formfeed, the macro resumes, relative to the location
- of the selected line.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- ReplaceF Reload or replace the current file
-
- Overview:
-
- This macro simply calls the internal ReplaceFile() command to allow
- you to reload the current file (or replace it with another file).
-
- Keys: (none)
-
-
- ShowCurr Show ascii and hex value of current character on the StatusLine
-
- Overview:
-
- This macro will display the ascii and hex values of the current
- character on the right edge of the status line.
-
- Keys: (none)
-
-
- ShowKey Displays information about keys available in TSE
-
- Overview:
-
- This macro displays information about the assignable keys on the
- keyboard. When you execute this macro, an information chart is
- displayed on the screen. You then press a key or key-combination
- (using the <Ctrl>, <Shift>, and <Alt> keys). If the key is one that
- the editor recognizes as an assignable key, a line is displayed in
- the chart that identifies the following information for that key:
-
- ∙ screen display character (if applicable)
-
- ∙ ASCII code
-
- ∙ scan code
-
- ∙ hexadecimal representation
-
- ∙ decimal representation
-
- ∙ key name (that is, the "name" to use for that key in an editor k
- assignment)
-
- If the key is not assignable, nothing is displayed when you press
- the key.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply
- select it from the Potpourri menu.
-
- State Save/Restore editor state information (files/windows/etc)
-
- Overview:
-
- This macro allows you to interactively save the editing environment
- for the current session, or restore the previously-saved
- environment.
-
- Keys: (none)
-
- Usage notes:
-
- The State macro can come in handy when you need to interrupt your
- current editing session to view another set of files. Without
- exiting from the editor, you can save the environment for the
- current session; load additional files and/or change certain editing
- options; then automatically restore the previous environment so you
- can return to the set of files and options as they were previously.
-
- When you execute this macro, the editor displays a prompt box from
- which you can select "Save State" to save the current editing
- environment, or select "Restore State" to restore the
- previously-saved environment.
-
- Command line format:
-
- state [-g|-l] [-r|-s] [-ffilename]
-
- where:
- -g use global state file (default)
- -l use local state file
- -r restore
- -s save
- -ffilename alternate file-path (default is tsestate.dat)
- -q don't complain if state file not found
-
-
- Things that TSE saves via other means:
-
- - recent files
- - history
-
- Things saved via this macro:
- - bookmarks
- - windows
- - files
- - common-modes
- - block
-
- Format of the saved information:
-
- [state v1.0]
- [files]
- line row pos xoffset filenames binary_mode display_mode
- [bookmarks]
- bookmark line row pos xoffset filename
- [windows]
- curr_windowid display_boxed show_statusline show_mainmenu show_helpl
- windowid x1 y1 length height line row pos xoffset filename
- [block]
- type begline begcol endline endcol filename
- [modes]
- insert auto wordwrap rightmargin leftmargin tabtype tabwidth backups
-
-
-
- Sum Sums a column of numbers marked as a COLUMN block
-
- Overview:
-
- This macro sums up a column of numbers that have been marked in the
- text as a column block. The result is optionally inserted in the
- text. Sum handles decimal and hexadecimal numbers. For decimal
- numbers, it accepts positive and negative (identified with a
- preceding "-" sign) numbers, as well as decimal-point fractions.
-
- Keys: (none)
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- Sums either base 10 (decimal), base 16 (hexadecimal), or mixed.
-
- For base 10, a fractional part is allowed and may be up to 8 decimal
- places. Fractions are disallowed for hexadecimal numbers.
-
- For base 16, a preceding '0x' is ignored, as is a trailing 'h'.
-
- For mixed base, a preceding '0x' or a valid hexadecimal letter a-f
- or a trailing 'h' forces base 16 for that entry. Otherwise, base 10
- is assumed.
-
- The fractional part is maintained within (-1,1) to avoid overflow.
-
- Commas within a number are ignored.
-
- Only the final result is placed in the necessary form for display.
-
- To find a number, the cursor scans left to right until a numeric
- sign or valid number is encountered. Only whitespace is skipped.
- Also, only one sign is allowed. In other words, --1 is not allowed.
-
- TabUtil Converts tab characters to spaces, or spaces to tab characters
-
- Overview:
-
- This macro converts tab characters in the current file to spaces, or
- converts spaces to tab characters. When invoked, a menu is
- presented allowing you to select Entab or Detab.
-
- To limit the scope of the conversion to a block, execute the macro
- from within a marked block. NOTE that it will convert the entire
- lines that the blocks span.
-
- Usage notes:
-
- This macro does not have any key assignments. To use, simply select
- it from the Potpourri menu.
-
- When entabbing, if a tab character or a single or double quote is
- encountered, the rest of that line is not entabbed.
-
- Tree Generates and displays directory TREE for specified path
-
- Overview:
-
- Generates and displays a directory tree for a given drive and/or
- subdirectory.
-
- Keys: (none)
-
- Usage notes:
-
- Invoke the TREE macro via the ExecMacro() prompt. On the
- command-line to TREE you may optionally specify a filespec and
- options:
-
- The 'filespec' is the location to start the tree. All
- subdirectories under that location will be displayed.
-
-
- Options are
- -l Long format
- -g Graphical output (default)
- -t Show Totals
- -h Show Helpline
- -f Show Filenames
-
- If the '-f' option is specified, files meeting the filespec
- name and extension will be displayed as well. Note, however,
- that if a filename is specified, the '-f' option is ON by
- default.
-
- For example, "Tree c:\util\*.s" will display all files
- which match "*.s" within and under the "c:\util" directory.
-
- If the '-f' option is not specified and no filename is specifi
- the name and extension are ignored and not displayed.
-
- When the TREE is display, if the '-l' option has been specified,
- <Tab> will toggle between the filename output and fileinfo output.
-
- Unload Quit/Abandon all unchanged files, excluding the current file
-
- Overview:
-
- Use this macro when you have loaded a lot of files (for instance,
- using the multi-file find/replace) and are no longer interested in
- keeping all of them loaded, cluttering things up.
-
- Keys: (none)
-
-
- Where A "whereis" command for TSE
-
- Overview:
-
- This command will search a drive or multiple drives for the
- specified file(s), and present the user with a list of all such
- found files. From this list, you can either edit or delete the file.
-
- Keys:
- <CtrlAlt W> Where()
-
- Usage notes:
-
- Normally, Where searches the drives that have been specified via
- the configuration menu. However, you can override the default by
- specifying one or more drives along with the filename, as in:
- "cde:*.doc", which would search drives "c", "d", and "e" for all
- "*.doc" files.
-
- Searches may also include a path, for instance:
-
- C:\TSE\*.MAC will find all ".MAC" files in all of the TSE
- subdirectories. (eg) C:.\*.EXE will find all ".EXE" files
- beginning with the current directory.
-
- Wipe Move or Cut a block and fill with spaces
-
- Overview:
-
- This macro file provides two macros: MoveWipe, which is a variation
- of the MoveBlock command; and CutWipe, which is a variation of the
- Cut (to the System ClipBoard) command. When you execute Wipe from
- the Potpourri PickList, MoveWipe is assigned to <AltShift M>, and
- CutWipe is assigned to <Shift Grey*>. These macros behave similarly
- to the commands on which they are based, except that the area of
- text from which the block is moved or cut, is filled with spaces.
- Also, with MoveWipe, if a column block is moved, the editor overlays
- existing text with the contents of the block, rather than inserting
- the contents of the block into its new location.
-
- Keys:
- <AltShift M> MoveWipe()
- <AltShift Grey-> CutWipe()
-
- Usage notes:
-
- If you wish to make this macro a permanent part of your
- configuration, then simply add "Wipe" to the AutoLoad list on the
- Macro menu.
-
- Wordcnt Count the number of words in the block or file
-
- Overview:
-
- Count the number of words in the current file, or, if the cursor is
- in a block, the number of words in the block. The result is
- displayed.
-
- Words are assumed to be in the set a-z, A-Z, 0-9 and _.
-
-